﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zj.Blog.Domain.OA
{
    [Table("User", Schema = "dbo")]
    public class Tb_User : AbstractEntity
    {
        [Required, MaxLength(10)]
        public string Name { get; set; }
        [Required, Range(1, 120)]
        public int Age { get; set; }
        [Required,MinLength(5)]
        public string Account { get; set; }
        [Required,MinLength(6)]
        public string Password { get; set; }
    }
}
